#include "memento.h"

int main(){
    std::unique_ptr<Player> play = std::make_unique<Player>(100,100,100);
    play->showStatus();

    std::unique_ptr<PlayManager> manager = std::make_unique<PlayManager>();

    std::shared_ptr<PlayMemento> memmto;
    auto now = std::chrono::system_clock::now();
    uint16_t current_time = std::chrono::system_clock::to_time_t(now);
    memmto = play->StorePlayerFile();
    manager->setPlayMemento(current_time,memmto);

    play->attacked();
    play->attacked();
    play->showStatus();

    auto memento1 = manager->getPlayMemento(current_time);
    play->ReadPlayFile(memento1);
    play->showStatus();

    return 0;
}